﻿@model Huirui.Cavan.Presentation.ViewModel.PurchaseModule.IPurchaseViewModel
<div id="selectStockWindowFromPurchase" class="easyui-window" data-options="closed:true,minimizable:false,maximizable:false,collapsible:false,title:'@Html.Raw("按采购退货")',modal:true" style="width: 900px; height: 600px; padding: 2px;">
    <div>
        @using (Html.BeginForm(ActionConst.STOCKSFROMPURCHASE, ControllerConst.STOCK, FormMethod.Post, new { id = "searchStockFromPurchase" }))
        {
            <label>
                日期:</label>
            @Html.TextBoxFor(m => m.SearchParam.StartDate)@Html.Raw("至")@Html.TextBoxFor(m => m.SearchParam.EndDate) 
            <label>
                采购单号:</label>
            @Html.TextBoxFor(m => m.SearchParam.ID, new { id = "purchaseCode" })
            <label>
                存货号:</label>
            @Html.TextBoxFor(m => m.SearchParam.StockCode, new { id = "stockCode" })
            <input type="submit" value="查询入库单" id="queryStocksFromPurchase" />
            <input type="button" value="确定存货" id="doSelectStocksFromPurchase" />
        }
        <table id="stocksFromPurchase">
        </table>
    </div>
</div>
